package com.dnjn.happiness.survey.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dnjn.happiness.survey.domain.Question;
import com.dnjn.happiness.survey.domain.Survey;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Amber
 * @since 2023-10-04
 */
public interface IQuestionService extends IService<Question> {

//    int addQuestion(Question question);

    int addQuestion(Survey domain);

    List<Question> querySurveyBySurveyId(Question domain);

    List<Question> selectBysurveyId(Long surveyId);

    //通过题目id 去查题目
    List<Question> queryAnswerByQuestionId(Long questionId);

    List<Question> querySurveyQuestionBySurveyId(Long surveyId, Long userId);

    List<Question> querySurveyQuestionAnalysis(Long surveyId);

    List<Long> selectTikuIdBySurveyTemplateId(Long surveyTemplateId);

    List<Question> querySurveyBySurveyIdX(Long surveyId);
}
